<?php 
$D->_sp = $D->p;
$_sp = & $D->_sp;
?>

<tr id="fcomment_<?php echo $_sp['id'];?>">
   <td><div class="font_lan"><a href="javascript:;" onclick="showUser(<?php echo $_sp['authorid'];?>);"><?php echo $_sp['author'];?></a></div></td>
   <td><?php echo $_sp['comment'];?></td>
   <td><?php echo date('Y-m-d H:i:s',$_sp['add_time']);?></td>
  	<td>
  		<?php if($_sp['is_del'] != 1){?>
  			<a href="javascript:if(confirm('你确定删除此评论？')){invitaion_comment_remove(<?php echo $_sp['id'];?>);}">删除</a>
  		<?php }else{?> --<?php }?>
  </td>
</tr>


<script type="text/javascript">
function invitaion_comment_remove(id){
	if(id > 0){
		$.ajax({
			type: "POST",
			url: "/sys_admin/forum/forum_coment_save",
			data: "id="+id,
			success: function(ret){
				if(ret.msg > 0){
					alert('操作成功');
					$("#fcomment_"+id).hide();
				}else{
					alert('操作失败');
				}
			},
			dataType: "json"
		});	
	}	
}
</script>
						